/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopPictureTable.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_picture_table")
public class ShopPictureTable {
	
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String pictureTableSid;
	@Length(max=50)
	private java.lang.String fileId;
	@Length(max=50)
	private java.lang.String businessSid;
	@Length(max=50)
	private java.lang.String enterUserId;
	
	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserId;
	
	private java.util.Date updateDate;
	//columns END


	public ShopPictureTable(){
	}

	public ShopPictureTable(
		java.lang.String pictureTableSid
	){
		this.pictureTableSid = pictureTableSid;
	}

	

	public void setPictureTableSid(java.lang.String value) {
		this.pictureTableSid = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid")
	@Column(name = "picture_table_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getPictureTableSid() {
		return this.pictureTableSid;
	}
	
	@Column(name = "file_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getFileId() {
		return this.fileId;
	}
	
	public void setFileId(java.lang.String value) {
		this.fileId = value;
	}
	
	@Column(name = "business_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getBusinessSid() {
		return this.businessSid;
	}
	
	public void setBusinessSid(java.lang.String value) {
		this.businessSid = value;
	}
	
	@Column(name = "enter_user_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserId() {
		return this.enterUserId;
	}
	
	public void setEnterUserId(java.lang.String value) {
		this.enterUserId = value;
	}
	
	
	
	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}
	
	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}
	
	@Column(name = "update_user_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserId() {
		return this.updateUserId;
	}
	
	public void setUpdateUserId(java.lang.String value) {
		this.updateUserId = value;
	}
	
	
	
	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	
	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
}

